//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2007 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   ACCESS_TEAM
// AUTHOR           :   Jerry Chen 
// DATE CREATE      :   2007/10/26
// DESCRIPTION      :   a MAINTENANCE FORM file for the function, ACCESS_TEAM
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2007/10/26   Jerry Chen      1.0                 source is generated.
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.erp.app.setup.accessTeamMaster.web;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.erp.framework.controller.form.*;
import com.erp.framework.controller.form.SimpleMaintStyleFormTemplate;
import com.erp.framework.util.CommonUtil;
import com.erp.framework.util.logger.Logger;
import com.erp.app.util.web.*;

/**
* <p>A <strong>MaintenanceForm</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to get the user input
* from the web browsers.
*
* @author          Jerry Chen 
* @version 1.0     2007/10/26
* @since           FrameWork 1.0
*
*/
public class AccessTeamMaintenanceForm extends SimpleMaintStyleFormTemplate {

	//Header Attributes (DB Table Name: T_ACCESS_TEAM_HDR)
	private String companyCode = "";                                                                   //DB Column Name: COMPANY_CODE
	private String accessTeamCode = "";                                                                //DB Column Name: ACCESS_TEAM_CODE
	private String hdrAccessTeamName = "";                                                             //DB Column Name: ACCESS_TEAM_NAME
	private String hdrDescription = "";                                                                //DB Column Name: DESCRIPTION
	private String hdrStatus = "";                                                                     //DB Column Name: STATUS
	private String hdrDcInd = "";                                                                      //DB Column Name: DC_IND
	private String hdrDcDate = "";                                                                     //DB Column Name: DC_DATE
	private String createUser = "";                                                                    //DB Column Name: CREATE_USER
	private String createDate = "";                                                                    //DB Column Name: CREATE_DATE
	private String updateUser = "";                                                                    //DB Column Name: UPDATE_USER
	private String updateDate = "";                                                                    //DB Column Name: UPDATE_DATE

	/**
	* Validate the properties that have been set for this non-HTTP request,
	* and return an <code>ActionErrors</code> object that encapsulates any
	* validation errors that have been found.  If no errors are found, return
	* <code>null</code> or an <code>ActionErrors</code> object with no
	* recorded error messages.
	* <p>
	* The default implementation attempts to forward to the HTTP version of
	* this method.
	*
	* @param      mapping      the action mapping
	* @param      formIn       the action form
	* @param      request      the http request
	* @param      response     the http response
	* @param      errors       the action errors array
	* @author     Jerry Chen 
	* @since      Framework 1.0
	*/
	public void moreValidate(ActionMapping mapping, ActionForm formIn,
		HttpServletRequest request, HttpServletResponse response, ActionErrors errors) {
		final AccessTeamMaintenanceForm form = (AccessTeamMaintenanceForm) formIn;
		BeanValidator validator = new BeanValidator();
		validator.validate(mapping, form, request, response, errors);
	}

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Jerry Chen 
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, accessTeamCode = " + this.accessTeamCode + "}\n";
		String colStr = "COL: {hdrAccessTeamName = " + this.hdrAccessTeamName
			+ "\n, hdrDescription = " + this.hdrDescription
			+ "\n, hdrStatus = " + this.hdrStatus
			+ "\n, hdrDcInd = " + this.hdrDcInd
			+ "\n, hdrDcDate = " + this.hdrDcDate
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate + "}\n";
		return "AccessTeamMaintenanceForm.toString() (header only) is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for Header (AccessTeamHdr)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getAccessTeamCode() {
		return this.accessTeamCode;
	}

	public String getHdrAccessTeamName() {
		return this.hdrAccessTeamName;
	}

	public String getHdrDescription() {
		return this.hdrDescription;
	}

	public String getHdrStatus() {
		return this.hdrStatus;
	}

	public String getHdrDcInd() {
		return this.hdrDcInd;
	}

	public String getHdrDcDate() {
		return this.hdrDcDate;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public String getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = CommonUtil.toCode(companyCode);
	}

	public void setAccessTeamCode(String accessTeamCode) {
		this.accessTeamCode = CommonUtil.toCode(accessTeamCode);
	}

	public void setHdrAccessTeamName(String hdrAccessTeamName) {
		this.hdrAccessTeamName = CommonUtil.trim(hdrAccessTeamName);
	}

	public void setHdrDescription(String hdrDescription) {
		this.hdrDescription = CommonUtil.trim(hdrDescription);
	}

	public void setHdrStatus(String hdrStatus) {
		this.hdrStatus = CommonUtil.trim(hdrStatus);
	}

	public void setHdrDcInd(String hdrDcInd) {
		this.hdrDcInd = CommonUtil.trim(hdrDcInd);
	}

	public void setHdrDcDate(String hdrDcDate) {
		this.hdrDcDate = CommonUtil.trim(hdrDcDate);
	}

	public void setCreateUser(String createUser) {
		this.createUser = CommonUtil.trim(createUser);
	}

	public void setCreateDate(String createDate) {
		this.createDate = CommonUtil.trim(createDate);
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = CommonUtil.trim(updateUser);
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = CommonUtil.trim(updateDate);
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}